package com.kuangstudy.operator;

/**
 * ClassName: UnsafeBuyTicket
 * date: 2021/7/9/009
 *
 * @author zlk
 */
public class Demo1 {
    public static void main(String[] args) {
        /**
         * 除了long类型其他类型都是int
         */
        long a = 124567654333L;
        int b= 123;
        short c = 10;
        byte d = 8;
        System.out.println(a+b+c+d);//long
        System.out.println(b+c+d);//int
        System.out.println(c+d);//int
    }
}
